package frontend.pages.worklog.morning;

import frontend.pages.base.BaseWebPage;
import org.apache.wicket.authroles.authorization.strategies.role.annotations.AuthorizeInstantiation;
import org.wicketstuff.annotation.mount.MountPath;

import static shared.other.UserRolesDefinition.ADMIN_ROLE_KEY;
import static shared.other.UserRolesDefinition.FOREMAN_ROLE_KEY;

@MountPath("morningWorkLogPage")
@AuthorizeInstantiation(value = {FOREMAN_ROLE_KEY, ADMIN_ROLE_KEY})
public class MorningWorkLogPage extends BaseWebPage {

    public static final String HELP_PANEL_TEXT = "contextualHelp.morningWorkLogPage.text";

    public MorningWorkLogPage() {
        super(HELP_PANEL_TEXT);
        setOutputMarkupId(true);
        initComponents();
    }

    private void initComponents() {
        add(new MorningWorkLogPanel("morningWorkLogPanel"));
    }
}
